<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <LINK REL=StyleSheet HREF="maintenancePagesCSS.css" TYPE="text/css" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
            include "Datasource.php";
            include "WorkDone.php";
            include "WorkDoneDao.php";
            $workDone = new WorkDone();
            $workDoneDao = new WorkDoneDao();

            $workDoneID = $_GET['wrkid'];

            $conn = new Datasource("localhost", "theanykey", "root", "");

            $workDone = $workDoneDao->getObject($conn, $workDoneID);

            
         ?>
        <center>
            <form action="WorkDoneEditFunc.php?wrkid=<?php print($_GET['wrkid']); ?>" method="post">
            <table class="EditTable">
                <tr>
                    <th>
                        Notes:&nbsp;
                    </th>
                    <td>
                        <textarea name="txtAreaNotes" id="txtAreaNotes" rows="4" cols="40"><?php print($workDone->getNotes()); ?></textarea>
                        <script type="text/javascript">
                        </script>
                    </td>
                </tr>
                <tr>
                    <th>
                        # Hours:&nbsp;
                    </th>
                    <td>
                        <input type="text" name="txtHours" id="txtHours" value="<?php print($workDone->getHrsWorkDone()); ?>" />
                    </td>
                </tr>
            </table>
                <br/>
                <input type="submit" value="Submit" id="btnSubmitWorkDone" />
           </form>
        </center>
        <?php
        // put your code here
        ?>
    </body>
</html>
